/*
 * cpu.h
 *
 *  Created on: Mar 14, 2012
 *      Author: User
 */

#ifndef CPU_H_
#define CPU_H_

/*
 * main.c
 *
 *  Created on: Feb 16, 2012
 *      Author: User
 */

//global variables
int* shared_memory; //this will be memory shared by producer/consumer pair
int* aux_flag; //communication variable between the CPU/Scheduler/Auxiliary; 1 for processing, 0 for nonprocessing.
int* key_flag;
int num_processes; //
bool ready_q_status; //true = not empty; false = empty

typedef struct entry_process_numbers_str{
	int total_num_processes;
	int num_calc;
	int num_cons_prod_pairs;
	int num_uis;
}entry_process_numbers_str;
#endif /* CPU_H_ */
